<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
      <zs></zs>
      <ls></ls>
      <ww></ww>
  </div>
  <script src="./vue.js"></script>
  <script>
    Vue.component('zs',{
        data() {
            return {
                msg:"我是组件的msg"
            }
        },
    // template 只能
        template:`<h1>{{msg}}</h1>`
    })
     
    Vue.component('ls',{
        data() {
            return {
                msg:"goodJob"
            }
        },
        template:`<span>{{msg}}</span>`
    })

    Vue.component('ww',{
        data() {
            return {
                msg:"ww很狂妄"
            }
        },
        template:`<h2>{{msg}}</h2>`
    })

    new Vue({
        el:"#app"
    })
  </script>
</body>
</html>
